var text = [{
  title: '结题报告', mod_title: '修改项目', back: '返回', confirm: '确定',
  btn: '申请结题', sub_reject: '驳回\n申请', sub_accept: '同意\n结题',
  ph1: '一句话总结该项目', ph2: '简述项目概况', ph3: '对自我的评价', ph4: '请概述驳回理由',
}, {
  title: '结题报告', mod_title: '修改项目',
  btn: '申请结题', sub_reject: '驳回\n申请', sub_accept: '同意\n结题',
  ph1: '一句话总结该项目', ph2: '简述项目概况', ph3: '对自我的评价', ph4: '请概述驳回理由',
}],
modal = [{
  loading: '提交中', fail: '申请内容未填写完整', succ: '申请已发送',
  accept: '同意结题', accept0: '同意结题后该项目将认定结束', accept1: '项目结题成功',
  reject: '申请已驳回', process: '处理中'
}, {
  loading: '提交中', fail: '申请内容未填写完整', succ: '申请已发送',
  accept: '同意结题', accept0: '同意结题后该项目将认定结束', accept1: '项目结题成功',
  reject: '申请已驳回', process: '处理中'
}],
abilities = [],
form = { content: {} },
animating = 0;

Page({
  data: {
    showMask: true,
    showText: false,
    hideGroup2: true,         // 显示另一组按钮
    REJECT: false,           // 驳回申请的输入状态
    btnClr: '#ffeec6',       // 按钮颜色
    textClr: '#aaa',         // 按钮文字颜色

  },

  onLoad(option) {
    form.idPracticeItem = option.id;
    if (option.content) {
      let item = JSON.parse(decodeURIComponent(option.content));
      console.log(item)
      this.setData({
        SUBMIT: item
      });
    }
    this.setData({
      text: text[wx.lang],
      today: wx.formatTime(new Date, '-'),
    });
  },

  onShow() {
    wx.onShow(this, text[wx.lang].title, wx.theme);
    let clr = wx.rgb(wx.theme)
    this.setData({ btnArea: clr.join(',') })
    let obj = ['show1', 'show2', 'show3'];
    wx._slide_v(this, obj, wx.system.height, 0, () => {
      wx.slide_v(this, obj, 0, 1, .5, () => {
        this.setData({ showText: 1 });
      });
    })
  },

  onShareAppMessage: function () {
    return wx.onShareAppMessage();
  }


})